package com.sheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 王胜
 * @since 2022-12-02 13:31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_api_auto")
@ApiModel(value = "ApiAuto对象", description = "")
public class ApiAuto extends Model<ApiAuto> {

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("平台id")
    @TableField("platform_id")
    private Long platformId;

    @ApiModelProperty("平台名称")
    @TableField("platform_name")
    private String platformName;

    @ApiModelProperty("版本id")
    @TableField("version_id")
    private Long versionId;

    @ApiModelProperty("版本名称")
    @TableField("version_name")
    private String versionName;

    @ApiModelProperty("接口测试用例名称")
    @TableField("case_name")
    private String caseName;

    @ApiModelProperty("用例类型:1、功能测试 2、性能测试 3、数据生成")
    @TableField("case_type")
    private Long caseType;

    @ApiModelProperty("用例等级：1、低 2、中 3、高")
    @TableField("case_level")
    private Long caseLevel;

    @ApiModelProperty("用例描述")
    @TableField("case_description")
    private String caseDescription;



    @ApiModelProperty("脚本windows下路径")
    @TableField("case_windows_path")
    private String caseWindowsPath;



    @ApiModelProperty("脚本linux下路径")
    @TableField("case_linux_path")
    private String caseLinuxPath;

    @ApiModelProperty("生成报告网站url")
    @TableField("report_url")
    private String reportUrl;

    @ApiModelProperty("执行次数")
    @TableField("execute_count")
    private Long executeCount;

    @ApiModelProperty("执行人id")
    @TableField("execute_user_id")
    private Long executeUserId;

    @ApiModelProperty("执行人名称")
    @TableField("execute_user_name")
    private String executeUserName;

    @ApiModelProperty("创建人id")
    @TableField("create_by_id")
    private Long createById;

    @ApiModelProperty("创建人名称")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人ID")
    @TableField("last_update_by_id")
    private Long lastUpdateById;

    @ApiModelProperty("更新人")
    @TableField("last_update_by")
    private String lastUpdateBy;

    @ApiModelProperty("更新时间")
    @TableField("last_update_time")
    private LocalDateTime lastUpdateTime;

    @ApiModelProperty("是否删除  1：已删除  0：正常")
    @TableField("del_flag")
    private Integer delFlag;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
